fca2875bc6c812006f5de5aa5df1cba2a68038c8,src/org/openstreetmap/josm/gui/tagging/presets/TaggingPreset.java,TaggingPreset,createPanel,#Collection#,272
Before Change
// "Add toolbar button"
JToggleButton tb = new JToggleButton(new ToolbarButtonAction());
tb.setFocusable(false);
p.add(tb, GBC.std(0, 0).anchor(GBC.LINE_END));
return p;
}
After Change
}
final int count = pp.getComponentCount();
if (preset_name_label) {
p.add(new JLabel(getIcon(Action.LARGE_ICON_KEY)), GBC.std(0, 0).span(1, count > 0 ? 2 : 1).insets(0, 0, 5, 0));
}
if (count > 0) {
p.add(pp, GBC.std(1, 0).span(GBC.REMAINDER));
}
if (preset_name_label) {
p.add(new JLabel(getName()), GBC.std(1, count > 0 ? 1 : 0).insets(5, 0, 0, 0).span(GBC.REMAINDER).fill(GBC.HORIZONTAL));
}
boolean presetInitiallyMatches = !selected.isEmpty() && selected.stream().allMatch(this);